package com.chen.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.List;

@TableName("role")
@Data
@ApiModel(value = "角色",description = "")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String  name;  //角色名称
    private String comment; // 备注

    @TableField(exist = false)
    private List<Integer> permissions;
}
